package cn.znk.kedis.master_slave_model.autoconfigure.importer;

import cn.znk.kedis.master_slave_model.autoconfigure.*;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * IntelliJ IDEA
 * project: kedis-spring-boot-starter
 *
 * @author shimi
 * @since 2021/11/22
 * @version 1.0.1
 */
public class ConfigureImporter implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[] {
            RedisSlaveAutoConfiguration.class.getName(),
            RedisMasterAutoConfiguration.class.getName(),
            RedisPoolAutoConfiguration.class.getName(),
            KedisTemplateAutoConfiguration.class.getName(),
            RedisCacheAutoConfiguration.class.getName(),
            KedisDynamicAutoConfiguration.class.getName()
        };
    }

}
